package com.stxx.stiot2.gateway.face;

import com.stxx.stiot2.domain.Gateway;
import com.stxx.stiot2.event.dto.P2tMsg;
import com.stxx.stiot2.event.dto.T2pMsg;

public interface GatewayServer {
    void init(Gateway gateway);
    T2pMsg receive(String topic, String message);
    void send(String gatewayCode, String terminalCode, P2tMsg message);
    void close();
}
